package cn.zhz.dao;

import java.io.Serializable;
import cn.zhz.pojo.Dept;


public class DeptDao extends BaseDao {
    public void delete(Dept dept) {
        currentSession().delete(dept);
    }

    public void delete(Serializable id) {
		/*Dept dept = this.load(id);
		this.currentSession().delete(dept);*/
        currentSession().delete(this.load(id));
    }

    public void merge(Dept dept) {
        currentSession().merge(dept);
    }

    public void update(Dept dept) {
        currentSession().update(dept);
    }

    public void save(Dept dept) {
        currentSession().save(dept);
    }

    public Dept get(Serializable id) {
        return (Dept) currentSession().get(Dept.class, id);
    }

    public Dept load(Serializable id) {
        return (Dept) currentSession().load(Dept.class, id);
    }
}

